import Taro, { Component } from '@tarojs/taro';
import { View } from '@tarojs/components'
import './historylist.scss'

class historylist extends Component {
  render() {
    return (
      <View class="history" >
        {
          this.props.datalist&&this.props.datalist.map((item) => {
            return (
              <View key={item} onClick={()=>this.props.itemClick(item)}>
                {item}
              </View>
            )
          })
        }
      </View>
    );
  }
}

export default historylist;